# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=arpoison
pkgver=0.7
pkgrel=1
groups=('blackarch' 'blackarch-exploitation' 'blackarch-spoof')
pkgdesc='The UNIX arp cache update utility.'
arch=('x86_64' 'aarch64')
url='http://www.arpoison.net/'
license=('GPL')
depends=('libnet')
source=("http://www.arpoison.net/$pkgname-$pkgver.tar.gz")
sha512sums=('d5af078c8e2c64eb721da75b5d6659ca017267f146d0dca7e0f1ba77bfd93a0f56363428c198e9c46537768d3568d813c150bfbc091430fc355a269f9327108f')

build() {
  cd "$pkgname-$pkgver"

  make
}

package() {
  cd "$pkgname-$pkgver"

  install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

